import type { App, Plugin} from 'vue'

import EcoIcon from '@/components/eco-icon/index.vue' 

// 定义自定义组件
const components = [
    EcoIcon
]

const Ecocomponent: Plugin = {
    install: (app: App) => {
		components.forEach((component: any) => {
			console.log(component)
			app.component(component.name, component)
		})
	}
}

export default Ecocomponent